if true then return {} end

return {
  -- ai插件
  -- 在你的zshrc或者bashrc中设置LLM_KEY环境变量(Cloudflare 需要额外设置 ACCOUNT)
  -- export LLM_KEY=<Your API_KEY> 对于本地大模型, 在zshrc or bashrc中设置 LLM_KEY 为 NONE.
  -- export ACCOUNT=<Your ACCOUNT> # just for cloudflare 云平台,如果url没有被配置，默认使用Cloudflare
  -- LLMSessionToggle: 打开/隐藏对话界面
  -- LLMSelectedTextHandler: 对选中的文本进行处理，如何处理取决于你传入什么提示词
  -- LLMAppHandler: 调用AI工具
  "Kurama622/llm.nvim",
  dependencies = { "nvim-lua/plenary.nvim", "MunifTanjim/nui.nvim" },
  cmd = { "LLMSesionToggle", "LLMSelectedTextHandler", "LLMAppHandler"},
  config = function()
    require("llm").setup({
      prompt = "请用中文回答",
      prefix = {
        user = { text = "😃 ", hl = "Title" },
        assistant = { text = "⚡ ", hl = "Added" },
      },
      url = "http://localhost:11434/api/chat", -- your url
      model = "deepseek-r1:1.5b",
      api_type = "ollama",
      fetch_key = function()
        -- return vim.env.LOCAL_LLM_KEY
        return NONE
      end,
      -- ollama流式输出处理
      streaming_handler = function(chunk, line, assistant_output, bufnr, winid, F)
        if not chunk then
          return assistant_output
        end
        local tail = chunk:sub(-1, -1)
        if tail:sub(1, 1) ~= "}" then
          line = line .. chunk
        else
          line = line .. chunk
          local status, data = pcall(vim.fn.json_decode, line)
          if not status or not data.message.content then
            return assistant_output
          end
          assistant_output = assistant_output .. data.message.content
          F.WriteContent(bufnr, winid, data.message.content)
          line = ""
        end
        return assistant_output
      end,
      keys = {
        -- The keyboard mapping for the input window.
        ["Input:Submit"] = { mode = "n", key = "<s-cr>" },
      },
    })
  end,
  keys = {
    ["Input:Submit"] = { mode = "n", key = "<cr>" },
    { "<leader>ac", mode = "n", "<cmd>LLMSessionToggle<cr>" },
    -- { "<cmd>LLMSelectedTextHandler 请解释下面这段代码<cr>" },
    -- { "<leader>t", mode = "x", "<cmd>LLMSelectedTextHandler 英译汉<cr>" },
  },
}
